package org.jeecg.modules.payment.service.impl;

import lombok.RequiredArgsConstructor;
import org.jeecg.modules.payment.init.EnumRegistrar;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class EnumDictService {

    private final EnumRegistrar enumRegistrar;

    public Class getEnumByCode(String dictCode) {
        Class clazz = enumRegistrar.getRegisteredEnums().get(dictCode);
        return clazz;
    }
}
